import request from '@/utils/request';

// 租户列表
export function tenantList(data) {
    return request({
        url: '/system/sysTenant/list',
        method: 'get',
        params: data
    })
}

// 新建租户
export function tenantAdd(data) {
    return request({
        url: '/system/sysTenant/insert',
        method: 'post',
        data: data
    })
}

// 租户详情
export function tenantDetail(id) {
    return request({
        url: '/system/sysTenant/selectOne?id=' + id,
        method: 'get'
    })
}

// 编辑租户
export function tenantEdit(data) {
    return request({
        url: '/system/sysTenant/update',
        method: 'post',
        data: data
    })
}